﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ibook.master" AutoEventWireup="true"
    CodeFile="showBook.aspx.cs" Inherits="showBook" %>

<%@ Register TagPrefix="wen" TagName="show" Src="~/ascx/show.ascx" %>
<%@ Register TagPrefix="inqu" TagName="inquiry" Src="~/ascx/inquiry.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<%--<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderNavigation" runat="Server">
</asp:Content>--%>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderBody" runat="Server">
    <div>
        <table width="100%">
            <tr>
                <td align="center">
                    <asp:Label ID="Label10" runat="server" Font-Bold="True" Font-Names="隶书" Font-Size="X-Large"
                        ForeColor="Red" Text="图书信息浏览表"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="center">
                   
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                      <asp:DataList ID="DataList1" runat="server" BackColor="#DEBA84" BorderColor="#DEBA84"
                        BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2" GridLines="Both"
                        DataKeyField="bookId" Width="100%" OnItemCommand="DataList1_ItemCommand" OnSelectedIndexChanged="DataList1_SelectedIndexChanged">
                        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                        <SelectedItemStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                        <ItemStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
                        <ItemTemplate>
                            <table width="100%">
                                <tr>
                                    <td align="left" rowspan="4">
                                        <asp:Image ID="Image1" runat="server" Height="100px" ImageUrl='<%#DataBinder.Eval(Container.DataItem,"smallImg")%>' />
                                    </td>
                                    <td align="left">
                                        <asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Names="隶书" ForeColor="Red"
                                            Text="书名："></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:Label ID="Label5" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"bookName")%>'></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Names="隶书" ForeColor="Red"
                                            Text="出版社："></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:Label ID="Label6" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"publisher") %>'></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left">
                                        <asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Names="隶书" ForeColor="Red"
                                            Text="单价："></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:Label ID="Label8" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"marketPrice")%>'></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:Label ID="Label7" runat="server" Font-Bold="True" Font-Names="隶书" ForeColor="Red"
                                            Text="作者："></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:Label ID="Label9" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"author")%>'></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" colspan="4" rowspan="2">
                                        <asp:LinkButton ID="LinkButton1" runat="server" CommandName="see" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"bookId") %>'
                                            Font-Bold="False" Font-Names="隶书">点击查看</asp:LinkButton>
                                    </td>
                                </tr>
                                <tr>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:DataList>
                    </ContentTemplate>
                    </asp:UpdatePanel>
                    
                </td>
            </tr>
        </table>
    </div>
    <p>
    <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Label ID="Label11" runat="server" Text="当前页："></asp:Label>&nbsp;
    <asp:Label ID="currentpage" runat="server" ></asp:Label>&nbsp;
    <asp:Button ID="BtnUp" runat="server" OnClick="BtnUp_Click" Text="上一页" />&nbsp;
    <asp:Button ID="BtnDown" runat="server" OnClick="BtnDown_Click" Text="下一页" />
    </p>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderPanel" runat="Server">
    <div style="width: 207px">
        <wen:show ID="MyHello" runat="server"></wen:show>
    </div>
    <p>
        &nbsp;
    </p>
    <div style="width: 207px">
        <inqu:inquiry ID="MyInquiry" runat="server"></inqu:inquiry>
    </div>
</asp:Content>
